package com.zsh.weather.ln.home.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.zsh.weather.ln.R
import com.zsh.weather.ln.bean.CityInfo

class SearchAdapter(data: MutableList<CityInfo>) : BaseQuickAdapter<CityInfo,BaseViewHolder>(R.layout.fragment_search_adapter,data) {
    override fun convert(holder: BaseViewHolder, item: CityInfo) {
        holder.setText(R.id.tv_city,item.name)
    }
}